<extend name="public@emptypage" />
<block name="content">
<div class="card">
	<div class="card-header card-header-primary">

				<ul class="nav nav-tabs" data-tabs="tabs">
			<li class="nav-item">
				<a class="nav-link" href="{:url('slide/index')}">幻灯片列表</a>
			</li>
		</ul>
	</div>
	<div class="row">
		<div class="col-md-12">
			<div class="card-body">
			
					<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('slide/editPost')}">
						<div class="form-group">
							<label for="input-name" class="col-sm-2 control-label">名称<span class="form-required">*</span></label>
							<div class="col-md-6 col-sm-10">
								<input type="text" class="form-control" id="input-name" name="name" value="{$result.name}">
							</div>
						</div>
						<div class="form-group">
							<label for="input-remark" class="col-sm-2 control-label">{:lang('DESCRIPTION')}</label>
							<div class="col-md-6 col-sm-10">
								<textarea class="form-control" id="input-remark" name="remark">{$result.remark}</textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<input type="hidden" name="id" value="{$result.id}">
								<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
								<a class="btn btn-default" href="{:url('slide/index')}">{:lang('BACK')}</a>
							</div>
						</div>
					</form>

			</div>
		</div>
	</div>
</block>
<block name="script">

	<script src="__STATIC__/js/admin.js"></script>

</block>